<template>
    <a-config-provider :locale="zhCN">
      <div class="example" v-if="store.getters.loadding == 'yes'">
    <a-spin />
  </div>
    <template #renderEmpty>
        <div style="text-align: center">
           <a-empty />
        </div>
      </template>
      <router-view/>
    </a-config-provider>
</template>
<script>
import { defineComponent, reactive, ref } from "vue";
import { useStore } from 'vuex';
 import zhCN from 'ant-design-vue/lib/locale-provider/zh_CN'
export default {
  setup(){
       const store = useStore()
    return {
    
      store,
      zhCN
    }
  }
}
</script>
<style lang="scss">
.example{
  width:100%;
  height:100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index:1000000000;
  text-align: center;
  background: #eaeaea;
  opacity: 0.1;
}
html{
  height: 100%;
}
body{
  margin: 0;
  height: 100%;
}
#app {
  font-size: 1rem;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
